
CURR_PATH = $(shell pwd)

SUBDIRS := $(CURR_PATH)/cJSON
# SUBDIRS += $(CURR_PATH)/crypto/curve25519
# SUBDIRS += $(CURR_PATH)/crypto/easy-ecc
# SUBDIRS += $(CURR_PATH)/MemMang


all: libs
	$(AT)echo "build done"

libs:
	$(AT)echo "SUBDIRS: $(SUBDIRS)"
	$(AT)echo "building middleware libs..."
	$(AT)for dir in $(SUBDIRS); \
	do \
		make -C $$dir;	\
	done
	$(AT)echo "build middleware libs done"


.PHONY: clean
clean:
	$(AT)for dir in $(SUBDIRS); \
	do \
		make clean -C $$dir;	\
	done
